// 跳转页面
  uni.navigateTo({
    url: '/pages/agree/agreement/agreement'
  });

//跳转tab 
  uni.switchTab({
    url: '/pages/self/personal/personal'
  });

//返回上一页 
  uni.navigateBack({
    delta: 1
  });

// 弹出框
  uni.showLoading({
    title: '登录中',
    icon: 'none',
    duration: 1000
  });

  uni.showToast({
    title: '登录中',
    icon: 'none'
  });

  uni.hideLoading();

// 点击事件
  `<view @tap="test">`
  `test(){
    console.log('test')
  }`

// 本地缓存
  uni.setStorageSync('accountType', 1); //设置
  uni.getStorageSync('accountType') //读取

// v-if
  `<view v-if="userInfo.name==0">
    <view>{{userInfo.name==}}</view>
  </view>`


// 父子传参

  // 父
  `<view class="main-item must-item">
    <view class="title">职位描述</view>
    <view class="cont" data-para="description" data-title="职位描述" @tap="toKeyChange" >
        {{ para.description?para.description:"请填写" }}
    </view>
  </view>`

  'toKeyChange(e) {'  // 去填写
    uni.navigateTo({
      url:
        '/pages/company/text/text?' +
        `title=${e.currentTarget.dataset.title}` +
        `&para=${e.currentTarget.dataset.para}` +
        `&value=${this.para[e.currentTarget.dataset.para]}`
    });
  '}'

  // 子
  `<view id="text">
    <view class="main">
        <textarea name="" enableNative="{{ false }}" :value="textValue" @input="intKeyChange" maxlength="2000" @confirm="confirmValue" placeholder="请输入"></textarea>
    </view>
    <view class="finish" @tap="confirmValue">完成</view>
  </view>`
  // 支付宝防止输入框上移 enableNative="{{ false }}"
  `
  intKeyChange(e) { //赋值
    this.setData({
        textValue: e.detail.value
    });
  },

  confirmValue() {
    let pages = getCurrentPages();
    let prevPage = pages[pages.length - 2];
    prevPage.$vm.para[this.para]=this.textValue
    //将值传到上一页

    uni.navigateBack({
        delta: 1
    });
  }
  `

// 页面加载传参
`onLoad(option){
  console.log(option.type)
}`